home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global x, y, r, theta, AnsW
- cursor(-1)
- set the cursor of sprite 20 to [319, 320]
- set the cursor of sprite 21 to [319, 320]
- set the randomSeed to the ticks
- set the keyDownScript to "printPass"
- set the keyUpScript to "numsOnly"
- end
-
- on stopMovie
- set the cursor of sprite 20 to 0
- set the cursor of sprite 21 to 0
- put 45 into field "Answer"
- end
-
- on numsOnly
- if (the key = ENTER) or (the key = RETURN) or (the keyCode = 76) then
- exit
- end if
- if ((the key < "0") or (the key > "9")) and (the key <> "-") and (the key <> ".") and (the key <> numToChar(9)) and (the key <> numToChar(8)) then
- dontPassEvent()
- end if
- end
-